package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.RoomImageMapper;
import com.woniu.apartment.domain.RoomImage;
import com.woniu.apartment.service.IRoomImageService;

/**
 * 房间图片Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class RoomImageServiceImpl implements IRoomImageService 
{
    @Autowired
    private RoomImageMapper roomImageMapper;

    /**
     * 查询房间图片
     * 
     * @param id 房间图片主键
     * @return 房间图片
     */
    @Override
    public RoomImage selectRoomImageById(Long id)
    {
        return roomImageMapper.selectRoomImageById(id);
    }

    /**
     * 查询房间图片列表
     * 
     * @param roomImage 房间图片
     * @return 房间图片
     */
    @Override
    public List<RoomImage> selectRoomImageList(RoomImage roomImage)
    {
        return roomImageMapper.selectRoomImageList(roomImage);
    }

    /**
     * 新增房间图片
     * 
     * @param roomImage 房间图片
     * @return 结果
     */
    @Override
    public int insertRoomImage(RoomImage roomImage)
    {
        return roomImageMapper.insertRoomImage(roomImage);
    }

    /**
     * 修改房间图片
     * 
     * @param roomImage 房间图片
     * @return 结果
     */
    @Override
    public int updateRoomImage(RoomImage roomImage)
    {
        return roomImageMapper.updateRoomImage(roomImage);
    }

    /**
     * 批量删除房间图片
     * 
     * @param ids 需要删除的房间图片主键
     * @return 结果
     */
    @Override
    public int deleteRoomImageByIds(Long[] ids)
    {
        return roomImageMapper.deleteRoomImageByIds(ids);
    }

    /**
     * 删除房间图片信息
     * 
     * @param id 房间图片主键
     * @return 结果
     */
    @Override
    public int deleteRoomImageById(Long id)
    {
        return roomImageMapper.deleteRoomImageById(id);
    }
}
